import {showAllCommoment} from '../service/commoment'
export default {
    namespaced:true,
    state:{
       commomentList:[]
    },
    mutations:{
       setCommomentList(state,commomentList){
            state.commomentList = commomentList;
       }
    },
    actions:{
        async setCommomentList(context,userId){
            let response = await showAllCommoment(userId);
            context.commit('setCommomentList',response.data);
       }
    }
}